﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Commander.Models.Dashboard.ProjectModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Summary</h2>
    <p>
        Project Name:
        <%= Model.Name %><br />
        <%= Html.ActionLink("Run", "Run") %>
        <%= Html.ActionLink("Upload file", "UploadFile") %>
        <%= Html.ActionLink("Upload Archive","UploadArchive") %>
    </p>
    <table>
        <tr>
            <th>
                Name
            </th>
            <th>
                Created
            </th>
            <th>
                Option
            </th>
        </tr>
        <% foreach (var item in Model.Files) { %>
        <tr>
            <td>
                <%=item.Name %>
            </td>
            <td>
                <%= item.DateCreated.ToLocalTime().ToString() %>
            </td>
            <td>
                <%= Html.ActionLink("Delete","Delete", new {Name=item.Name, Path=item.WebPath}) %>
            </td>
        </tr>
        <%} %>
    </table>
</asp:Content>
